var Dog = require("./dog.js");

var dog = new Dog('taidi',10);

dog.on("bark",function(){
    console.log(this.name + "barked！ energy： " + this.energy);
})